<!doctype html>

<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>dragscrollsupport_test.js (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>


  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>

<div class="clear"></div>

<h2><a href="local_closure_goog_fx_dragscrollsupport_test.js.html">dragscrollsupport_test.js</a></h2>

<pre class="prettyprint lang-js">
<a name="line1"></a>// Copyright 2008 The Closure Library Authors. All Rights Reserved.
<a name="line2"></a>//
<a name="line3"></a>// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
<a name="line4"></a>// you may not use this file except in compliance with the License.
<a name="line5"></a>// You may obtain a copy of the License at
<a name="line6"></a>//
<a name="line7"></a>//      http://www.apache.org/licenses/LICENSE-2.0
<a name="line8"></a>//
<a name="line9"></a>// Unless required by applicable law or agreed to in writing, software
<a name="line10"></a>// distributed under the License is distributed on an &quot;AS-IS&quot; BASIS,
<a name="line11"></a>// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<a name="line12"></a>// See the License for the specific language governing permissions and
<a name="line13"></a>// limitations under the License.
<a name="line14"></a>
<a name="line15"></a>goog.provide(&#39;goog.fx.DragScrollSupportTest&#39;);
<a name="line16"></a>goog.setTestOnly(&#39;goog.fx.DragScrollSupportTest&#39;);
<a name="line17"></a>
<a name="line18"></a>goog.require(&#39;goog.fx.DragScrollSupport&#39;);
<a name="line19"></a>goog.require(&#39;goog.math.Coordinate&#39;);
<a name="line20"></a>goog.require(&#39;goog.testing.MockClock&#39;);
<a name="line21"></a>goog.require(&#39;goog.testing.events&#39;);
<a name="line22"></a>goog.require(&#39;goog.testing.jsunit&#39;);
<a name="line23"></a>
<a name="line24"></a>var vContainerDiv;
<a name="line25"></a>var vContentDiv;
<a name="line26"></a>var hContainerDiv;
<a name="line27"></a>var hContentDiv;
<a name="line28"></a>var clock;
<a name="line29"></a>
<a name="line30"></a>function setUpPage() {
<a name="line31"></a>  vContainerDiv = document.getElementById(&#39;vContainerDiv&#39;);
<a name="line32"></a>  vContentDiv = document.getElementById(&#39;vContentDiv&#39;);
<a name="line33"></a>  hContainerDiv = document.getElementById(&#39;hContainerDiv&#39;);
<a name="line34"></a>  hContentDiv = document.getElementById(&#39;hContentDiv&#39;);
<a name="line35"></a>}
<a name="line36"></a>
<a name="line37"></a>function setUp() {
<a name="line38"></a>  clock = new goog.testing.MockClock(true);
<a name="line39"></a>}
<a name="line40"></a>
<a name="line41"></a>
<a name="line42"></a>function tearDown() {
<a name="line43"></a>  clock.dispose();
<a name="line44"></a>}
<a name="line45"></a>
<a name="line46"></a>
<a name="line47"></a>function testDragZeroMarginDivVContainer() {
<a name="line48"></a>  var dsc = new goog.fx.DragScrollSupport(vContainerDiv);
<a name="line49"></a>
<a name="line50"></a>  // Set initial scroll state.
<a name="line51"></a>  var scrollTop = 50;
<a name="line52"></a>  vContainerDiv.scrollTop = scrollTop;
<a name="line53"></a>
<a name="line54"></a>  goog.testing.events.fireMouseMoveEvent(vContainerDiv,
<a name="line55"></a>      new goog.math.Coordinate(50, 20 + 50));
<a name="line56"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line57"></a>  assertEquals(&#39;Mousing inside the vContainer should not trigger scrolling.&#39;,
<a name="line58"></a>      scrollTop, vContainerDiv.scrollTop);
<a name="line59"></a>  assertEquals(&#39;Scroll timer should not tick yet&#39;, 0, clock.getTimeoutsMade());
<a name="line60"></a>
<a name="line61"></a>  scrollTop = vContainerDiv.scrollTop;
<a name="line62"></a>  goog.testing.events.fireMouseMoveEvent(vContainerDiv,
<a name="line63"></a>      new goog.math.Coordinate(50, 10));
<a name="line64"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line65"></a>  assertTrue(&#39;Mousing above the vContainer should trigger scrolling up.&#39;,
<a name="line66"></a>      scrollTop &gt; vContainerDiv.scrollTop);
<a name="line67"></a>  scrollTop = vContainerDiv.scrollTop;
<a name="line68"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line69"></a>  assertTrue(&#39;Mousing above the vContainer should trigger scrolling up.&#39;,
<a name="line70"></a>      scrollTop &gt; vContainerDiv.scrollTop);
<a name="line71"></a>
<a name="line72"></a>  scrollTop = vContainerDiv.scrollTop;
<a name="line73"></a>  goog.testing.events.fireMouseMoveEvent(vContainerDiv,
<a name="line74"></a>      new goog.math.Coordinate(50, 20 + 110));
<a name="line75"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line76"></a>  assertTrue(&#39;Mousing below the vContainer should trigger scrolling down.&#39;,
<a name="line77"></a>      scrollTop &lt; vContainerDiv.scrollTop);
<a name="line78"></a>  scrollTop = vContainerDiv.scrollTop;
<a name="line79"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line80"></a>  assertTrue(&#39;Mousing below the vContainer should trigger scrolling down.&#39;,
<a name="line81"></a>      scrollTop &lt; vContainerDiv.scrollTop);
<a name="line82"></a>
<a name="line83"></a>  scrollTop = vContainerDiv.scrollTop;
<a name="line84"></a>  goog.testing.events.fireMouseMoveEvent(vContainerDiv,
<a name="line85"></a>      new goog.math.Coordinate(50, 20 + 50));
<a name="line86"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line87"></a>  assertEquals(&#39;Mousing inside the vContainer should stop scrolling.&#39;,
<a name="line88"></a>      scrollTop, vContainerDiv.scrollTop);
<a name="line89"></a>
<a name="line90"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line91"></a>
<a name="line92"></a>  dsc.dispose();
<a name="line93"></a>}
<a name="line94"></a>
<a name="line95"></a>function testDragZeroMarginDivHContainer() {
<a name="line96"></a>  var dsc = new goog.fx.DragScrollSupport(hContainerDiv);
<a name="line97"></a>
<a name="line98"></a>  // Set initial scroll state.
<a name="line99"></a>  var scrollLeft = 50;
<a name="line100"></a>  hContainerDiv.scrollLeft = scrollLeft;
<a name="line101"></a>
<a name="line102"></a>  goog.testing.events.fireMouseMoveEvent(hContainerDiv,
<a name="line103"></a>      new goog.math.Coordinate(200 + 50, 20 + 50));
<a name="line104"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line105"></a>  assertEquals(&#39;Mousing inside the hContainer should not trigger scrolling.&#39;,
<a name="line106"></a>      scrollLeft, hContainerDiv.scrollLeft);
<a name="line107"></a>  assertEquals(&#39;Scroll timer should not tick yet&#39;, 0, clock.getTimeoutsMade());
<a name="line108"></a>
<a name="line109"></a>  scrollLeft = hContainerDiv.scrollLeft;
<a name="line110"></a>  goog.testing.events.fireMouseMoveEvent(hContainerDiv,
<a name="line111"></a>      new goog.math.Coordinate(200 - 10, 20 + 50));
<a name="line112"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line113"></a>  assertTrue(&#39;Mousing left of the hContainer should trigger scrolling left.&#39;,
<a name="line114"></a>      scrollLeft &gt; hContainerDiv.scrollLeft);
<a name="line115"></a>  scrollLeft = hContainerDiv.scrollLeft;
<a name="line116"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line117"></a>  assertTrue(&#39;Mousing left of the hContainer should trigger scrolling left.&#39;,
<a name="line118"></a>      scrollLeft &gt; hContainerDiv.scrollLeft);
<a name="line119"></a>
<a name="line120"></a>  scrollLeft = hContainerDiv.scrollLeft;
<a name="line121"></a>  goog.testing.events.fireMouseMoveEvent(hContainerDiv,
<a name="line122"></a>      new goog.math.Coordinate(200 + 110, 20 + 50));
<a name="line123"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line124"></a>  assertTrue(&#39;Mousing right of the hContainer should trigger scrolling right.&#39;,
<a name="line125"></a>      scrollLeft &lt; hContainerDiv.scrollLeft);
<a name="line126"></a>  scrollLeft = hContainerDiv.scrollLeft;
<a name="line127"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line128"></a>  assertTrue(&#39;Mousing right of the hContainer should trigger scrolling right.&#39;,
<a name="line129"></a>      scrollLeft &lt; hContainerDiv.scrollLeft);
<a name="line130"></a>
<a name="line131"></a>  scrollLeft = hContainerDiv.scrollLeft;
<a name="line132"></a>  goog.testing.events.fireMouseMoveEvent(hContainerDiv,
<a name="line133"></a>      new goog.math.Coordinate(200 + 50, 20 + 50));
<a name="line134"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line135"></a>  assertEquals(&#39;Mousing inside the hContainer should stop scrolling.&#39;,
<a name="line136"></a>      scrollLeft, hContainerDiv.scrollLeft);
<a name="line137"></a>
<a name="line138"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line139"></a>
<a name="line140"></a>  dsc.dispose();
<a name="line141"></a>}
<a name="line142"></a>
<a name="line143"></a>
<a name="line144"></a>function testDragMarginDivVContainer() {
<a name="line145"></a>  var dsc = new goog.fx.DragScrollSupport(vContainerDiv, 20);
<a name="line146"></a>
<a name="line147"></a>  // Set initial scroll state.
<a name="line148"></a>  var scrollTop = 50;
<a name="line149"></a>  vContainerDiv.scrollTop = scrollTop;
<a name="line150"></a>
<a name="line151"></a>  goog.testing.events.fireMouseMoveEvent(vContainerDiv,
<a name="line152"></a>      new goog.math.Coordinate(50, 20 + 50));
<a name="line153"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line154"></a>  assertEquals(&#39;Mousing inside the vContainer should not trigger scrolling.&#39;,
<a name="line155"></a>      scrollTop, vContainerDiv.scrollTop);
<a name="line156"></a>  assertEquals(&#39;Scroll timer should not tick yet&#39;, 0, clock.getTimeoutsMade());
<a name="line157"></a>
<a name="line158"></a>  scrollTop = vContainerDiv.scrollTop;
<a name="line159"></a>  goog.testing.events.fireMouseMoveEvent(vContainerDiv,
<a name="line160"></a>      new goog.math.Coordinate(50, 30));
<a name="line161"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line162"></a>  assertTrue(&#39;Mousing above the margin should trigger scrolling up.&#39;,
<a name="line163"></a>      scrollTop &gt; vContainerDiv.scrollTop);
<a name="line164"></a>  scrollTop = vContainerDiv.scrollTop;
<a name="line165"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line166"></a>  assertTrue(&#39;Mousing above the margin should trigger scrolling up.&#39;,
<a name="line167"></a>      scrollTop &gt; vContainerDiv.scrollTop);
<a name="line168"></a>
<a name="line169"></a>  scrollTop = vContainerDiv.scrollTop;
<a name="line170"></a>  goog.testing.events.fireMouseMoveEvent(vContainerDiv,
<a name="line171"></a>      new goog.math.Coordinate(50, 20 + 90));
<a name="line172"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line173"></a>  assertTrue(&#39;Mousing below the margin should trigger scrolling down.&#39;,
<a name="line174"></a>      scrollTop &lt; vContainerDiv.scrollTop);
<a name="line175"></a>  scrollTop = vContainerDiv.scrollTop;
<a name="line176"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line177"></a>  assertTrue(&#39;Mousing above the margin should trigger scrolling down.&#39;,
<a name="line178"></a>      scrollTop &lt; vContainerDiv.scrollTop);
<a name="line179"></a>
<a name="line180"></a>  scrollTop = vContainerDiv.scrollTop;
<a name="line181"></a>  goog.testing.events.fireMouseMoveEvent(vContainerDiv,
<a name="line182"></a>      new goog.math.Coordinate(50, 20 + 50));
<a name="line183"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line184"></a>  assertEquals(&#39;Mousing inside the margin should stop scrolling.&#39;,
<a name="line185"></a>      scrollTop, vContainerDiv.scrollTop);
<a name="line186"></a>
<a name="line187"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line188"></a>
<a name="line189"></a>  assertEquals(&#39;Scroll timer should have ticked 5 times&#39;,
<a name="line190"></a>      5, clock.getTimeoutsMade());
<a name="line191"></a>
<a name="line192"></a>  dsc.dispose();
<a name="line193"></a>}
<a name="line194"></a>
<a name="line195"></a>
<a name="line196"></a>function testDragMarginScrollConstrainedDivVContainer() {
<a name="line197"></a>  var dsc = new goog.fx.DragScrollSupport(vContainerDiv, 20);
<a name="line198"></a>  dsc.setConstrainScroll(true);
<a name="line199"></a>
<a name="line200"></a>  // Set initial scroll state.
<a name="line201"></a>  var scrollTop = 50;
<a name="line202"></a>  vContainerDiv.scrollTop = scrollTop;
<a name="line203"></a>
<a name="line204"></a>  goog.testing.events.fireMouseMoveEvent(vContainerDiv,
<a name="line205"></a>      new goog.math.Coordinate(50, 20 + 50));
<a name="line206"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line207"></a>  assertEquals(&#39;Mousing inside the vContainer should not trigger scrolling.&#39;,
<a name="line208"></a>      scrollTop, vContainerDiv.scrollTop);
<a name="line209"></a>  assertEquals(&#39;Scroll timer should not tick yet&#39;, 0, clock.getTimeoutsMade());
<a name="line210"></a>
<a name="line211"></a>  scrollTop = vContainerDiv.scrollTop;
<a name="line212"></a>  goog.testing.events.fireMouseMoveEvent(vContainerDiv,
<a name="line213"></a>      new goog.math.Coordinate(50, 30));
<a name="line214"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line215"></a>  assertTrue(&#39;Mousing above the margin should trigger scrolling up.&#39;,
<a name="line216"></a>      scrollTop &gt; vContainerDiv.scrollTop);
<a name="line217"></a>  scrollTop = vContainerDiv.scrollTop;
<a name="line218"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line219"></a>  assertTrue(&#39;Mousing above the margin should trigger scrolling up.&#39;,
<a name="line220"></a>      scrollTop &gt; vContainerDiv.scrollTop);
<a name="line221"></a>
<a name="line222"></a>  scrollTop = vContainerDiv.scrollTop;
<a name="line223"></a>  goog.testing.events.fireMouseMoveEvent(vContainerDiv,
<a name="line224"></a>      new goog.math.Coordinate(50, 20 + 90));
<a name="line225"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line226"></a>  assertTrue(&#39;Mousing below the margin should trigger scrolling down.&#39;,
<a name="line227"></a>      scrollTop &lt; vContainerDiv.scrollTop);
<a name="line228"></a>  scrollTop = vContainerDiv.scrollTop;
<a name="line229"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line230"></a>  assertTrue(&#39;Mousing above the margin should trigger scrolling down.&#39;,
<a name="line231"></a>      scrollTop &lt; vContainerDiv.scrollTop);
<a name="line232"></a>
<a name="line233"></a>  scrollTop = vContainerDiv.scrollTop;
<a name="line234"></a>  goog.testing.events.fireMouseMoveEvent(vContainerDiv,
<a name="line235"></a>      new goog.math.Coordinate(50, 20 + 50));
<a name="line236"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line237"></a>  assertEquals(&#39;Mousing inside the margin should stop scrolling.&#39;,
<a name="line238"></a>      scrollTop, vContainerDiv.scrollTop);
<a name="line239"></a>
<a name="line240"></a>  scrollTop = vContainerDiv.scrollTop;
<a name="line241"></a>  goog.testing.events.fireMouseMoveEvent(vContainerDiv,
<a name="line242"></a>      new goog.math.Coordinate(50, 10));
<a name="line243"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line244"></a>  assertEquals(&#39;Mousing above the vContainer should not trigger scrolling up.&#39;,
<a name="line245"></a>      scrollTop, vContainerDiv.scrollTop);
<a name="line246"></a>  scrollTop = vContainerDiv.scrollTop;
<a name="line247"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line248"></a>  assertEquals(&#39;Mousing above the vContainer should not trigger scrolling up.&#39;,
<a name="line249"></a>      scrollTop, vContainerDiv.scrollTop);
<a name="line250"></a>
<a name="line251"></a>  scrollTop = vContainerDiv.scrollTop;
<a name="line252"></a>  goog.testing.events.fireMouseMoveEvent(vContainerDiv,
<a name="line253"></a>      new goog.math.Coordinate(50, 20 + 110));
<a name="line254"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line255"></a>  assertEquals(
<a name="line256"></a>      &#39;Mousing below the vContainer should not trigger scrolling down.&#39;,
<a name="line257"></a>      scrollTop, vContainerDiv.scrollTop);
<a name="line258"></a>  scrollTop = vContainerDiv.scrollTop;
<a name="line259"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line260"></a>  assertEquals(
<a name="line261"></a>      &#39;Mousing below the vContainer should not trigger scrolling down.&#39;,
<a name="line262"></a>      scrollTop, vContainerDiv.scrollTop);
<a name="line263"></a>
<a name="line264"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line265"></a>
<a name="line266"></a>  scrollTop = vContainerDiv.scrollTop;
<a name="line267"></a>  goog.testing.events.fireMouseMoveEvent(vContainerDiv,
<a name="line268"></a>      new goog.math.Coordinate(150, 20 + 90));
<a name="line269"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line270"></a>  assertEquals(&#39;Mousing to the right of the vContainer should not trigger &#39; +
<a name="line271"></a>      &#39;scrolling up.&#39;, scrollTop, vContainerDiv.scrollTop);
<a name="line272"></a>  scrollTop = vContainerDiv.scrollTop;
<a name="line273"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line274"></a>  assertEquals(&#39;Mousing to the right of the vContainer should not trigger &#39; +
<a name="line275"></a>      &#39;scrolling up.&#39;, scrollTop, vContainerDiv.scrollTop);
<a name="line276"></a>
<a name="line277"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line278"></a>
<a name="line279"></a>  assertEquals(&#39;Scroll timer should have ticked 5 times&#39;,
<a name="line280"></a>      5, clock.getTimeoutsMade());
<a name="line281"></a>
<a name="line282"></a>  dsc.dispose();
<a name="line283"></a>}
<a name="line284"></a>
<a name="line285"></a>
<a name="line286"></a>function testSetHorizontalScrolling() {
<a name="line287"></a>  var dsc = new goog.fx.DragScrollSupport(hContainerDiv);
<a name="line288"></a>  dsc.setHorizontalScrolling(false);
<a name="line289"></a>
<a name="line290"></a>  // Set initial scroll state.
<a name="line291"></a>  var scrollLeft = 50;
<a name="line292"></a>  hContainerDiv.scrollLeft = scrollLeft;
<a name="line293"></a>
<a name="line294"></a>  goog.testing.events.fireMouseMoveEvent(hContainerDiv,
<a name="line295"></a>      new goog.math.Coordinate(200 - 10, 20 + 50));
<a name="line296"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line297"></a>  assertEquals(&#39;Horizontal scrolling should be turned off&#39;,
<a name="line298"></a>      0, clock.getTimeoutsMade());
<a name="line299"></a>
<a name="line300"></a>  goog.testing.events.fireMouseMoveEvent(hContainerDiv,
<a name="line301"></a>      new goog.math.Coordinate(200 + 110, 20 + 50));
<a name="line302"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line303"></a>  assertEquals(&#39;Horizontal scrolling should be turned off&#39;,
<a name="line304"></a>      0, clock.getTimeoutsMade());
<a name="line305"></a>
<a name="line306"></a>  dsc.setHorizontalScrolling(true);
<a name="line307"></a>  scrollLeft = hContainerDiv.scrollLeft;
<a name="line308"></a>  goog.testing.events.fireMouseMoveEvent(hContainerDiv,
<a name="line309"></a>      new goog.math.Coordinate(200 - 10, 20 + 50));
<a name="line310"></a>  clock.tick(goog.fx.DragScrollSupport.TIMER_STEP_ + 1);
<a name="line311"></a>  assertTrue(&#39;Mousing left of the hContainer should trigger scrolling left.&#39;,
<a name="line312"></a>      scrollLeft &gt; hContainerDiv.scrollLeft);
<a name="line313"></a>
<a name="line314"></a>  dsc.dispose();
<a name="line315"></a>}
</pre>


</body>
</html>
